package com.relsell.view;

import android.app.Activity;
import android.os.Bundle;

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import com.relsell.pointofsales.R;

public class Map extends Activity {
	
	GoogleMap map;
	static final LatLng MyLocation = new LatLng(30.4351, 77.73051);
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.map);
		map=((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
		 Marker marker =map.addMarker(new MarkerOptions().position(MyLocation).title("We are Here"));
		map.moveCamera(CameraUpdateFactory.newLatLngZoom(MyLocation, 15));
		map.animateCamera(CameraUpdateFactory.zoomTo(12), 2000, null);
	}

}
